'use strict';

/**
 * @param {Egg.Application} app - egg application
 */
module.exports = app => {
  const { router, controller } = app;
  router.get('/', controller.home.index);
  router.post('/registry',controller.user.user.registry);
  router.post("/login",controller.user.user.login);
  router.get("/getrole",controller.user.user.getrole);
  router.get("/getmenu",controller.user.user.getmenu);
  router.post('/add/scores',controller.scores.scores.add);
  router.get('/list/scores',controller.scores.scores.list);
  router.get("/getstudent",controller.user.user.getstudent)
  router.post('/update/scores',controller.scores.scores.update);
  router.get('/del/scores',controller.scores.scores.del);
};
